﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Bingo.Help
{
    public partial class ucAbout : UserControl
    {
        #region ucAbout

        public ucAbout()
        {
            InitializeComponent();
        }

        private void ucAbout_SizeChanged(object sender, EventArgs e)
        {
            this.picClose.Location = new Point(this.Width - this.picClose.Width - 10, 3);
            this.rtbZhcw.Size = new Size(this.pAbout.Width - 20, this.pAbout.Height - 60);
        }

        #endregion

        #region Event

        #region PictrueBox

        private void picClose_MouseEnter(object sender, EventArgs e)
        {
            this.picClose.Image = Properties.Resources.close01;
        }

        private void picClose_MouseLeave(object sender, EventArgs e)
        {
            this.picClose.Image = Properties.Resources.close02;
        }

        private void picClose_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void picZhcw_Click(object sender, EventArgs e)
        {
            this.rtbZhcw.BringToFront();
        }

        private void picLottery_Click(object sender, EventArgs e)
        {
            this.rtbLottery.BringToFront();
        }

        private void picLeCai_Click(object sender, EventArgs e)
        {
            this.rtbLeCai.BringToFront();
        }

        #endregion

        #endregion
    }
}
